<?php

namespace app\beautiful\model\appointment;

use app\common\model\CommonModel;



class AppointmentSettingModel extends CommonModel{

    protected  $name = 'beautiful_appointment_setting';

    protected  $pk   = 'appointment_setting_id';



    public function setWeekAttr($value)

    {

        return implode(',',$value);

    }







    public function getWeekAttr($value)

    {

        $week=explode(',',$value);

        foreach ($week as $k => $v){

            $week[$k]= (int) $v;

        }

        return $week;

    }

}

